/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.resource.entity.ResourceCourse;
import com.lczyfz.istep.modules.resource.entity.ResourcePaper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试卷管理DAO接口
 * @author dh
 * @version 2017-01-15
 */
//k
@MyBatisDao
public interface ResourcePaperDao extends CrudDao<ResourcePaper> {

    //添加下发-根据培训方案id获取试卷
    List<ResourcePaper> findPaperById(@Param("trainProgramId")String trainProgramId, @Param("DEL_FLAG_NORMAL")String DEL_FLAG_NORMAL);

    //根据培训方案id查询试卷列表
    List<ResourcePaper> findPageByTrainprogramId(ResourcePaper resourcePaper);

    //我的学习任务-获取试卷名称
    List<ResourcePaper> stuLearnPaper(@Param("distributeId")String distributeId, @Param("userId")String userId, @Param("DEL_FLAG_NORMAL")String DEL_FLAG_NORMAL);

    ResourcePaper findPaperByPaperName(ResourcePaper resourcePaper);
}